package com.wobito.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wobito.pojo.bean.Borrow;
import com.wobito.pojo.dto.api.GetBorrowByPersonIdDTO;
import com.wobito.pojo.dto.api.GetBorrowDTO;
import com.wobito.pojo.dto.borrow.BorrowByPersonDTO;
import com.wobito.pojo.dto.borrow.BorrowDTO;
import com.wobito.pojo.dto.borrow.BorrowReminderDTO;
import com.wobito.pojo.vo.borrow.BorrowVO;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lambyang
 * @since 2024-08-29
 */
public interface BorrowMapper extends BaseMapper<Borrow> {

    List<BorrowByPersonDTO> selectBorrowByPerson(Long personId);

    List<GetBorrowByPersonIdDTO> selectBorrowByPersonId(Long personId);

    List<BorrowReminderDTO> selectBorrowByPersonReminder(Long personId);

    List<BorrowDTO> selectBorrowList(BorrowVO borrowVO);

    List<GetBorrowDTO> selectBorrowApi(Long personId,Long bookId);

}
